﻿using System;
using XmlServer.ServiceContracts;

namespace XmlServer.ServiceImplementation
{
    /// <summary>
    /// Represents a piece of information sent by the client to the XmlServer (and eventually to an operator)
    /// </summary>
    public class Fact : IFact
    {

        /// <summary>
        /// The name of the fact.  Since this is sent in an Xml file as a node, it should be Xml "friendly".        
        /// </summary>
        public string Name { get; set;}

        /// <summary>
        /// Get or set the value of the fact
        /// </summary>
        public string Value { get; set; }

        /// <summary>
        /// get/set the description of the fact
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// Indicates id the fact is requried or optional
        /// </summary>
        public bool IsRequired { get; set; }


    }
}
